package com.ruoyi.common.enums;

public enum GuaMethodEnum {

    Money("Money","铜钱摇卦"),Big("Big","大衍筮法");

    private final String code;
    private final String title;

    public static String getNameByKey(String key) {
        String rst = "";
        for(GuaMethodEnum oe: GuaMethodEnum.values()) {
            if (oe.getCode().equals(key)) {
                rst = oe.getTitle();
                break;
            }
        }
        return rst;
    }

    GuaMethodEnum(String code, String title)
    {
        this.code = code;
        this.title = title;
    }

    public String getCode()
    {
        return code;
    }

    public String getTitle()
    {
        return title;
    }
}
